package zheezes.eisp.data.orm;

import java.util.Date;

public class ConnState {
	public static final Integer TYPE_MASTER = 0;
	public static final Integer TYPE_CONCENTRATOR = 1;
	
	public static final Integer STATUS_ONLINE = 1;
	public static final Integer STATUS_OFFLINE = 0;
	
	private Integer id;
	private Integer type;
	private String logicAddr;
	private String desc;
	private Integer status;
	private String ip;
	private Integer port;
	private Integer fd;
	private Date firstOnline;
	private Date lastOnline;
	private Date lastOffline;
	private Integer heartbeat;
	private Date lastHeartbeat;
	
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public Integer getType() {
		return type;
	}
	public void setType(Integer type) {
		this.type = type;
	}
	public String getLogicAddr() {
		return logicAddr;
	}
	public void setLogicAddr(String logicAddr) {
		this.logicAddr = logicAddr;
	}
	public String getDesc() {
		return desc;
	}
	public void setDesc(String desc) {
		this.desc = desc;
	}
	public Integer getStatus() {
		return status;
	}
	public void setStatus(Integer status) {
		this.status = status;
	}
	public String getIp() {
		return ip;
	}
	public void setIp(String ip) {
		this.ip = ip;
	}
	public Integer getPort() {
		return port;
	}
	public void setPort(Integer port) {
		this.port = port;
	}
	public Integer getFd() {
		return fd;
	}
	public void setFd(Integer fd) {
		this.fd = fd;
	}
	public Date getFirstOnline() {
		return firstOnline;
	}
	public void setFirstOnline(Date firstOnline) {
		this.firstOnline = firstOnline;
	}
	public Date getLastOnline() {
		return lastOnline;
	}
	public void setLastOnline(Date lastOnline) {
		this.lastOnline = lastOnline;
	}
	public Date getLastOffline() {
		return lastOffline;
	}
	public void setLastOffline(Date lastOffline) {
		this.lastOffline = lastOffline;
	}
	public Integer getHeartbeat() {
		return heartbeat;
	}
	public void setHeartbeat(Integer heartbeat) {
		this.heartbeat = heartbeat;
	}
	public Date getLastHeartbeat() {
		return lastHeartbeat;
	}
	public void setLastHeartbeat(Date lastHeartbeat) {
		this.lastHeartbeat = lastHeartbeat;
	}
}
